﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VideoViewReport.aspx.cs"
    Inherits="Report_VideoViewReport" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>学生观看视频报表管理 </title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />

    <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="../Js/tablehover.js" type="text/javascript"></script>

    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
                查看报表信息</div>
        </div>
        <div id="search" class="search">
            <table cellspacing="1" cellpadding="3" border="0">
                <tr>
                    <td class="noWrapTD">
                        按开课日期
                    </td>
                    <td class="noWrapTD">
                        开始日期:
                    </td>
                    <td align="left">
                        <asp:TextBox runat="server" ID="txtBeginDate" class="inp1 Wdate" Style="width: 100px"
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})" CssClass="inp1 Wdate"></asp:TextBox>
                    </td>
                    <td class="noWrapTD">
                        结束日期:
                    </td>
                    <td align="left">
                        <asp:TextBox runat="server" ID="txtendDate" class="inp1 Wdate" Style="width: 100px"
                            onfocus="new WdatePicker({dateFmt:('yyyy-MM-dd')})" CssClass="inp1 Wdate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="noWrapTD">
                        按培训班查找:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlTrainClass" runat="server" CssClass="inp2" DataValueField=""
                            DataTextField="" AutoPostBack="True" OnSelectedIndexChanged="ddlTrainClass_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                    <td class="noWrapTD">
                        按课程名查找:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlCourse" runat="server" CssClass="inp2" DataValueField=""
                            DataTextField="">
                        </asp:DropDownList>
                    </td>
                    <td class="noWrapTD">
                        <asp:Button ID="btnCheck" runat="server" Text="查找" CssClass="button" OnClick="btnCheckByTrainClass_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <br class="sp3px" />
        <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
            <tr class="header">
                <td class="noWrapTD">
                    课程名称
                </td>
                 <td class="noWrapTD">
                    班级编号
                </td>
                <td class="noWrapTD">
                    开课日期
                </td>
                <td class="noWrapTD">
                    开课时间
                </td>
                <td class="noWrapTD">
                    结课时间
                </td>
                <td class="noWrapTD">
                    教师姓名
                </td>
                <td class="noWrapTD">
                    培训班名
                </td>
                <td class="noWrapTD">
                    观看次数
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server">
                <ItemTemplate>
                    <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
                        <td class="ta2">
                            <%#Eval("CourseName")%>&nbsp;
                        </td>
                         <td class="ta2">
                            <%#Eval("VTC_Number")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VCL_startDate","{0:yyyy-MM-dd}")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VCL_startTime", "{0:HH:mm}")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("VCL_EndTime", "{0:HH:mm}")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("TeacherName")%>&nbsp;
                        </td>
                        <td class="ta2">
                            <%#Eval("TrainClassName")%>&nbsp;
                        </td>
                        <td class="ta2">
                 <%--           <a href='VideoViewDetailPagedByPro.aspx?courseid=<%#Eval("courselistid")%>'>
                                <%#Eval("UserViewNum")%></a>--%>
                                 <%#Eval("UserViewNum")%>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <br class="sp3px" />
        <webdiyer:AspNetPager ID="pager" runat="server" OnPageChanged="pager_PageChanged"
            PageSize="20" CssClass="anpager" CurrentPageButtonClass="cpb">
        </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
